package com.tencent.mm.compatible.h;

import android.annotation.SuppressLint;
import android.content.SharedPreferences;

import com.tencent.mm.sdk.platformtools.ToolsAj;
import com.tencent.mm.sdk.platformtools.ad;

public class CompatHB {
    private static final String TAG = "MicroMsg.StyleUtil";
    private static int fxB = 0;

    public static boolean Xx() {
        if (fxB == 0) {
            SharedPreferences epI = ToolsAj.epI();
            if (epI == null || !epI.getBoolean("settings_support_swipe", true)) {
                fxB = 2;
            } else {
                fxB = 1;
            }
        }
        return fxB == 1;
    }

    @SuppressLint("ApplySharedPref")
    public static void cA(boolean z) {
        SharedPreferences epI = ToolsAj.epI();
        if (epI != null && epI.getBoolean("settings_support_swipe", true) != z) {
            epI.edit().putBoolean("settings_support_swipe", z).commit();
        }
        ad.i(TAG, "switchSwipeBackMode, from %B to %B", !z, z);
    }
}
